-- GENERATED SPELL FOR [Murloc Netter] --


function spell0_513(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_513', 5338, 1)
end

function spell1_513(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_513', 30254, 1)
end

function Sorts_513(pUnit, Event)
local choix_sorts_513 = math.random(0, 1)
if choix_sorts_513 == 0 then
pUnit:RegisterEvent('spell0_513', 1, 1)
end
if choix_sorts_513 == 1 then
pUnit:RegisterEvent('spell1_513', 1, 1)
end
end

function mob513_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_513', math.random(1500, 3000), 1)
end

function mob513_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob513_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob513_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(513, 1, 'mob513_Action')
RegisterUnitEvent(513, 2, 'mob513_Leave')
RegisterUnitEvent(513, 3, 'mob513_Kill')
RegisterUnitEvent(513, 4, 'mob513_Die')
